<?php



class OrdersStatusHistoryMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.OrdersStatusHistoryMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('orders_status_history');
		$tMap->setPhpName('OrdersStatusHistory');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ORDERS_STATUS_HISTORY_ID', 'OrdersStatusHistoryId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('ORDERS_ID', 'OrdersId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('ORDERS_STATUS_ID', 'OrdersStatusId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('DATE_ADDED', 'DateAdded', 'int', CreoleTypes::TIMESTAMP, true, null);

		$tMap->addColumn('CUSTOMER_NOTIFIED', 'CustomerNotified', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('COMMENTS', 'Comments', 'string', CreoleTypes::LONGVARCHAR, false, null);

	} 
} 